<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <script src="https://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
    <style>
        body {
            /*background: url("") no-repeat fixed;*/
            background-color: #7fbbff;
            background-size: 100% 100%;
            -moz-background-size: 100% 100%;
            margin: 0;
            padding: 0;
        }

        #content {
            background-color: rgba(255, 255, 255, 0.95);
            width: 420px;
            height: 300px;
            border: 1px solid #000000;
            border-radius: 6px;
            padding: 10px;
            margin-top: 15%;
            margin-left: auto;
            margin-right: auto;
            display: block;
        }

        .login-header {
            width: 100%;
            height: 48px;
            margin-bottom: 20px;
            border-bottom: 1px solid #dcdcdc;
        }

        .login-header img {
            width: 120px;
            margin-left: auto;
            margin-right: auto;
            display: block;
        }

        .login-input-box {
            margin-top: 12px;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
            text-align: center;
        }

        .login-input-box input {
            width: 300px;
            height: 32px;
            border: 1px solid #dcdcdc;
            border-radius: 4px;
            padding-left: 42px;
        }

        .login-input-box input:hover {
            border: 1px solid #0a4fff;
        }

        .login-input-box input:after {
            border: 1px solid #0a4fff;
        }

        .login-input-box .icon {
            width: 24px;
            height: 24px;
            margin: 6px 4px;
            background-color: #0a4fff;
            display: inline-block;
            position: absolute;
            border-right: 1px solid #dcdcdc;
        }

        .login-input-box .icon.icon-user {

        }

        .login-input-box .icon.icon-password {

        }

        .remember-box {
            width: auto;
            height: auto;
            margin-left: 56px;
            margin-top: 12px;
            font-size: 12px;
            color: #6a6765;
        }

        .login-button-box {
            margin-top: 12px;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
            text-align: center;
            display: inline-block;
        }

        .login-button-box button {
            background-color: #0a4fff;
            color: #ffffff;
            font-size: 16px;
            width: 300px;
            height: 40px;
            border: 1px solid #0a4fff;
            border-radius: 4px;
        }

        .login-button-box button:hover {
            background-color: #0a4fff;
        }

        .login-button-box button:active {
            background-color: #0a4fff;
        }

        .logon-box {
            margin-top: 20px;
            text-align: center;
        }

        .logon-box a {
            margin: 30px;
            color: #4a4744;
            font-size: 13px;
            text-decoration: none;
        }

        .logon-box a:hover {
            color: #0a4fff;
        }

        .logon-box a:active {
            color: #0a4fff;
        }
    </style>
</head>
<body>
<div id="content">
    <div class="login-header" style="text-align: center">
        <h2>登录</h2>
    </div>
    <form action="${pageContext.request.contextPath}/user/dologin" method="post">
        <div class="login-input-box">
            <span class="glyphicon glyphicon-user"></span> <input type="text" name="username" placeholder="请输入您的用户名">
        </div>
        <div class="login-input-box">
            <span class="glyphicon glyphicon-lock"></span> <input type="password" name="password" placeholder="请输入您的密码">
        </div>
        <div class="remember-box">
            <label> <input type="checkbox">&nbsp;记住我
            </label>
        </div>
        <div class="login-button-box">
            <button>登录</button>
        </div>
        <div class="logon-box">
            <a href="javascript:void(0)">忘记密码？</a> <a href="${pageContext.request.contextPath}/user/register">注册</a>
        </div>
    </form>
</div>

</body>
</html>
